package com.itcz.web;

import com.itcz.web.manager.OssManager;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.io.File;

@SpringBootTest
public class testOssClient {

    @Resource
    private OssManager ossManager;

    @Test
    public void testUpload() {
        File file = new File("D:/暂时/logo.png");
        ossManager.putObject(file);
    }
}
